using System;

namespace Mbs.Messaging.Imp
{
    [Serializable]
    class FormInvoker : AsyncInvoker
    {
        internal FormInvoker()
        {
        }

        protected override void Invoke(Delegate handler, params object[] args)
        {
            handler.Send(args);
        }

        protected override void AsyncInvoke(Delegate handler, params object[] args)
        {
            handler.Post(args);
        }
    }
}
